<?php
/*********************/
/*                   */
/* http://www.ymd.cc */
/*********************/
/*    QQ: 11121426   */
/*                   */
/*********************/

function tpl_modifier_usertime($timestamp)
{
    $system =& $GLOBALS['system'];
    $site_timeformat = $system->getConf("site.timeFormat");
    if (!$site_timeformat) {

        if (!$GLOBALS['site_timeformat'] = $system->getConf("site.timeFormat")) {
            $GLOBALS['site_timeformat'] = "Y-m-d H:i:s";
        }
    }
    return mydate($site_timeformat, $timestamp);
}

?>
